package com.cleaningcloud.erp.domain;

import java.util.Date;

import com.cleaningcloud.common.core.web.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.cleaningcloud.common.core.annotation.Excel;

/**
 * 采购入库对象 erp_warehousing
 * 
 * @author cleaningcloud
 * @date 2024-09-29
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class ErpWarehousing extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 入库ID */
    private Long warehousingId;

    // 应付账款id
    private Long payableId;

    /** 采购ID */
    private Long procureId;

    /** 采购单号 */
    @Excel(name = "采购单号", sort = 2)
    private String procureOdd;

    /** 仓库ID */
    private Long wareId;

    /** 入库编号 */
    @Excel(name = "入库单号", sort = 1)
    private String warehousingNo;

    /** 入库状态(1待入库2已入库) */
    @Excel(name = "入库状态", sort = 13 , readConverterExp = "1=待入库,2=已入库")
    private Integer warehousingStatus;

    /** 入库人ID */
    private Long warehousingPerson;

    /** 入库时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "入库时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss", sort = 11)
    private Date warehousingTime;

    /** 应入库总量 */
    @Excel(name = "预计入库量", sort = 6)
    private Integer answerScheduledReceipt;

    /** 创建人ID */
    private Long createId;

    /** 创建人名称 */
    @Excel(name = "创建人", sort = 12)
    private String createName;

    /** 备注是否关闭 */
    private String flag;

    /** 入库类型(1采购2退换货) */
    @Excel(name = "入库类型", sort = 4, readConverterExp = "1=采购,2=采购退换,3=销售退换")
    private Integer warehousingType;

    /** 备注 */
    @Excel(name = "备注", sort = 14)
    private String remark;


}
